{if $smarty.session.user_isadmin == "1"}
<div class="wrap">
<div id='addproject_resp' class="ajaxResponse"></div>
<h2>Add Project</h2>
<form name="addproject" id="addproject" method="post" 
	action="?module={$smarty.get.module}&sub1={$smarty.get.sub1}&act={$smarty.get.act}"
	onsubmit="onAddNewProject('addproject', 'addproject_resp', 'thelist'); return false;">
	<input type="hidden" name="act" value="addproject" />
	<table class="adminform" width="50%" align="center" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="project_name"><font color=red>*</font>{TranslateTag}B_LABEL_NAME{/TranslateTag}</label></th>
			<td width="67%">
			<input name="project_name" id="project_name" type="text" value="" size="40" maxlength="60"/></td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="project_description"><font color=red>*</font>{TranslateTag}B_LABEL_DESCRIPTION{/TranslateTag}</label></th>
        <td><textarea name="project_description" id="project_description" rows="5" cols="50" style="width: 97%;"></textarea></td>
		</tr>
		<tr>
			<th scope="row" valign="top"><label for="project_priority">Project Priority:</label></th>
			<td>        
	  			<select name='project_priority' id='project_priority' class='postform'>
		  			{foreach name=priority from=$PROJECT_PRIORITY item=item}
			  			<option id='priority_name-{$item->priority_id}' value='{$item->priority_id}'>
					     {$item->priority_name}
					    </option>
					{/foreach}
				  </select>
	  	</td>
		</tr>
		<tr>
			<td width="67%" colspan="2"  class="submit" align="right">
				<input type="image" name="submit" src="../view/admin/images/object_save.png" value="" />
			</td>
		</tr>
	</table>
</form>

</div>
{/if}